package com.sdkj.dspservice.modules.demand.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.sdkj.dspservice.common.base.service.impl.CrudServiceImpl;
import com.sdkj.dspservice.modules.demand.dao.DemandDetailsDao;
import com.sdkj.dspservice.modules.demand.entity.DemandDetails;
import com.sdkj.dspservice.modules.demand.service.DemandDetailsService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 需求详情service实现类
 *
 * @author tm
 */
@Service
@Transactional(readOnly = true)
public class DemandDetailsServiceImpl extends CrudServiceImpl<DemandDetailsDao, DemandDetails> implements DemandDetailsService {

    @Override
    public DemandDetails getLastByDemandId(String demandId) {
        return dao.getLastByDemandId(demandId);
    }

    @Override
    public List<DemandDetails> listLink(Wrapper<DemandDetails> wrapper) {
        return dao.listLink(wrapper);
    }
}
